function [ s ] = s( w,x,y )

    % x = large column vector of training images
    % y = single test image
    % w = weights
    
    s = zeros(1,size(x,1));

    for i=1:size(x,1)
        s(i) = sum(w.*x(i,:).*y);
    end
    
    
end

